home *** CD-ROM | disk | FTP | other *** search
- on GTSLeaveGames y
- global GTSGamesMasterList, GTSButtonsSprite, GTSButtonCastNum, GTSbuttonCount, IFLgamesNameSprite, ADDADCOntTwo, IFLButtonList, ADDAdCount, ADDADvertSprite
- forget(window "TRYGAME")
- updateStage()
- if y = 1 then
- nothing()
- else
- puppetSound(0)
- updateStage()
- end if
- repeat with f = 1 to count(GTSGamesMasterList)
- set TwochangeSprite to getAt(GTSGamesMasterList, f)
- if count(TwochangeSprite) > 2 then
- setAt(TwochangeSprite, 2, the castNum of sprite getAt(TwochangeSprite, 1))
- setAt(TwochangeSprite, 5, the ink of sprite getAt(TwochangeSprite, 1))
- setAt(TwochangeSprite, 3, the locH of sprite getAt(TwochangeSprite, 1))
- setAt(TwochangeSprite, 4, the locV of sprite getAt(TwochangeSprite, 1))
- else
- setAt(TwochangeSprite, 2, 0)
- end if
- set the locH of sprite getAt(TwochangeSprite, 1) to 2000
- set the locV of sprite getAt(TwochangeSprite, 1) to 2000
- end repeat
- set the locH of sprite 38 to 2000
- set the locH of sprite ADDADvertSprite to 2000
- set GTSbuttonCount to 0
- if y = 1 then
- set the castNum of sprite IFLgamesNameSprite to 17
- end if
- if y = 2 then
- set the locH of sprite 1 to 2000
- repeat with f = 1 to count(IFLButtonList)
- set ThisTempList to getAt(IFLButtonList, f)
- setAt(ThisTempList, 2, the castNum of sprite getAt(ThisTempList, 1))
- setAt(ThisTempList, 5, the ink of sprite getAt(ThisTempList, 1))
- end repeat
- repeat with t = 39 to 47
- set the locH of sprite t to 2000
- end repeat
- set ADDADCOntTwo to 0
- set ADDAdCount to 0
- set the locH of sprite ADDADvertSprite to 2000
- ADDLOADAdd()
- end if
- updateStage()
- end
-
- on GTSReturnGames y
- global GTSGamesMasterList, IFLButtonList, IFLgamesNameSprite, GTSHeadCastNum, GTSVisitCoverSprite, ADDADvertSprite, GTSSnapCover
- if y = 1 then
- repeat with g = 1 to 10
- set the castNum of sprite IFLgamesNameSprite to the castNum of sprite IFLgamesNameSprite - 1
- updateStage()
- end repeat
- end if
- repeat with f = 1 to count(GTSGamesMasterList)
- set TwochangeSprite to getAt(GTSGamesMasterList, f)
- if count(TwochangeSprite) > 2 then
- set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
- set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
- set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
- set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 5)
- set the visible of sprite getAt(TwochangeSprite, 1) to 1
- next repeat
- end if
- set the locH of sprite getAt(TwochangeSprite, 1) to 2000
- end repeat
- if y = 2 then
- repeat with f = 1 to count(IFLButtonList)
- set TwochangeSprite to getAt(IFLButtonList, f)
- set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
- set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
- set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
- set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 5)
- end repeat
- set the castNum of sprite 1 to the number of member "IFLStaticBackground"
- set the ink of sprite 1 to 36
- set the locH of sprite 1 to 325
- set the locV of sprite 1 to 271
- if GTSSnapCover > 2 then
- set the locH of sprite 38 to 2000
- end if
- end if
- if GTSHeadCastNum > 0 then
- set the castNum of sprite IFLgamesNameSprite to GTSHeadCastNum
- end if
- ADDAdvertBreak(7)
- updateStage()
- go("GTSgamesSection")
- set the windowType of window "TRYGAME" to 2
- set the rect of window "TRYGAME" to rect(the stageLeft + 412, the stageTop + 90, the stageLeft + 515, the stageTop + 195)
- open(window "TRYGAME")
- tell window "TRYGAME"
- updateStage()
- end tell
- if GTSVisitCoverSprite > 0 then
- tell window "TRYGAME"
- set the locH of sprite GTSVisitCoverSprite to 52
- end tell
- tell window "TRYGAME"
- set the locV of sprite GTSVisitCoverSprite to 53
- end tell
- end if
- end
-